package net.yunxinyong.cec.entity;

import net.yunxinyong.cec.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Cec705TwoEntity {
    private Integer id;

    private Integer baseId;

    private String energyName;

    private String measurementUnit;

    private String code;

    private BigDecimal consumptionIndustrialProduction;

    private BigDecimal processingConversionInput;

    private BigDecimal thermalPower;

    private BigDecimal heatSupply;

    private BigDecimal coalWashing;

    private BigDecimal coalCoking;

    private BigDecimal coalOil;

    private BigDecimal coalGas;

    private BigDecimal naturalGasLiquefaction;

    private BigDecimal coalProducts;

    private BigDecimal energyProcessingOutput;

    private BigDecimal recycling;

    private String unitHead;

    private String statisticalControlOfficer;

    private String fillFormBy;

    private String phone;

    private Integer state;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date updateTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
    private Integer status;
    //格式化后的表更新日期
    private String newupdateTime;
    //格式化后的表创建日期
    private String newcreateTime;

    public String getNewupdateTime() {
        return DateUtil.formatDateToStr(this.updateTime);
    }

    public void setNewupdateTime(String newupdateTime) {
        this.newupdateTime = newupdateTime;
    }

    public String getNewcreateTime() {
        return DateUtil.formatDateToStr(this.createTime);
    }

    public void setNewcreateTime(String newcreateTime) {
        this.newcreateTime = newcreateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBaseId() {
        return baseId;
    }

    public void setBaseId(Integer baseId) {
        this.baseId = baseId;
    }

    public String getEnergyName() {
        return energyName;
    }

    public void setEnergyName(String energyName) {
        this.energyName = energyName == null ? null : energyName.trim();
    }

    public String getMeasurementUnit() {
        return measurementUnit;
    }

    public void setMeasurementUnit(String measurementUnit) {
        this.measurementUnit = measurementUnit == null ? null : measurementUnit.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public BigDecimal getConsumptionIndustrialProduction() {
        return consumptionIndustrialProduction;
    }

    public void setConsumptionIndustrialProduction(BigDecimal consumptionIndustrialProduction) {
        this.consumptionIndustrialProduction = consumptionIndustrialProduction;
    }

    public BigDecimal getProcessingConversionInput() {
        return processingConversionInput;
    }

    public void setProcessingConversionInput(BigDecimal processingConversionInput) {
        this.processingConversionInput = processingConversionInput;
    }

    public BigDecimal getThermalPower() {
        return thermalPower;
    }

    public void setThermalPower(BigDecimal thermalPower) {
        this.thermalPower = thermalPower;
    }

    public BigDecimal getHeatSupply() {
        return heatSupply;
    }

    public void setHeatSupply(BigDecimal heatSupply) {
        this.heatSupply = heatSupply;
    }

    public BigDecimal getCoalWashing() {
        return coalWashing;
    }

    public void setCoalWashing(BigDecimal coalWashing) {
        this.coalWashing = coalWashing;
    }

    public BigDecimal getCoalCoking() {
        return coalCoking;
    }

    public void setCoalCoking(BigDecimal coalCoking) {
        this.coalCoking = coalCoking;
    }

    public BigDecimal getCoalOil() {
        return coalOil;
    }

    public void setCoalOil(BigDecimal coalOil) {
        this.coalOil = coalOil;
    }

    public BigDecimal getCoalGas() {
        return coalGas;
    }

    public void setCoalGas(BigDecimal coalGas) {
        this.coalGas = coalGas;
    }

    public BigDecimal getNaturalGasLiquefaction() {
        return naturalGasLiquefaction;
    }

    public void setNaturalGasLiquefaction(BigDecimal naturalGasLiquefaction) {
        this.naturalGasLiquefaction = naturalGasLiquefaction;
    }

    public BigDecimal getCoalProducts() {
        return coalProducts;
    }

    public void setCoalProducts(BigDecimal coalProducts) {
        this.coalProducts = coalProducts;
    }

    public BigDecimal getEnergyProcessingOutput() {
        return energyProcessingOutput;
    }

    public void setEnergyProcessingOutput(BigDecimal energyProcessingOutput) {
        this.energyProcessingOutput = energyProcessingOutput;
    }

    public BigDecimal getRecycling() {
        return recycling;
    }

    public void setRecycling(BigDecimal recycling) {
        this.recycling = recycling;
    }

    public String getUnitHead() {
        return unitHead;
    }

    public void setUnitHead(String unitHead) {
        this.unitHead = unitHead == null ? null : unitHead.trim();
    }

    public String getStatisticalControlOfficer() {
        return statisticalControlOfficer;
    }

    public void setStatisticalControlOfficer(String statisticalControlOfficer) {
        this.statisticalControlOfficer = statisticalControlOfficer == null ? null : statisticalControlOfficer.trim();
    }

    public String getFillFormBy() {
        return fillFormBy;
    }

    public void setFillFormBy(String fillFormBy) {
        this.fillFormBy = fillFormBy == null ? null : fillFormBy.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}